From: Aleksander Jan Bajkowski Date: Fri, 28 Feb 2025 20:46:54 +0000 (+0100) Subject: luci-mod-status: channel_analysis: fix 802.11be local interface channel width X-Git-Url: http://git.openwrt.org/%22https:/collectd.org//%22/%22https:/collectd.org/%22?a=commitdiff_plain;h=3522a424f8c441a6ced39f3f87e4ec5bd17b5d45;p=project%2Fluci.git luci-mod-status: channel_analysis: fix 802.11be local interface channel width The channel width for WiFi 802.11be displays incorrectly on the graph and this commit fixes it. Signed-off-by: Aleksander Jan Bajkowski --- diff --git a/modules/luci-mod-status/htdocs/luci-static/resources/view/status/channel_analysis.js b/modules/luci-mod-status/htdocs/luci-static/resources/view/status/channel_analysis.js index 914c39219d..32eb797dba 100644 --- a/modules/luci-mod-status/htdocs/luci-static/resources/view/status/channel_analysis.js +++ b/modules/luci-mod-status/htdocs/luci-static/resources/view/status/channel_analysis.js @@ -228,7 +228,7 @@ return view.extend({ if (chan_analysis.offset_tbl[local_wifi.channel] != null && local_wifi.center_chan1) { var center_channels = [local_wifi.center_chan1], - chan_width_text = local_wifi.htmode.replace(/(V)*H[TE]/,''), /* Handle HT VHT HE */ + chan_width_text = local_wifi.htmode.replace(/[EV]*H[TE]/,''), /* Handle HT VHT HE EHT */ chan_width = parseInt(chan_width_text)/10; if (local_wifi.center_chan2) {